package org.lmj.dos.web.resultdo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

public class AddressVo {
    // 4.选中查看具体的地址
    //get addressById
    @Data
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    public static class GetAddressByid{
            private int id;

            private int userId;

            private String receiverName;

            private String receiverPhone;

            private String receiverMobile;

            private String receiverProvince;

            private String receiverCity;

            private String receiverDistrict;

            private String receiverAddress;

            private String receiverZip;

            private int createTime;

            private int updateTime;
    }
    //5.地址列表
    @Data
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    public static class AddressList{
        private int pageNum;

        private int pageSize;

        private int size;

        private String orderBy;

        private int startRow;

        private int endRow;

        private int total;

        private int pages;

        private List<AddressItems> list;

        private int firstPage;

        private int prePage;

        private int nextPage;

        private int lastPage;
        @JsonProperty(value = "isFirstPage")
        private boolean isFirstPage;
        @JsonProperty(value = "isLastPage")
        private boolean isLastPage;

        private boolean hasPreviousPage;

        private boolean hasNextPage;

        private int navigatePages;

        private List<Integer> navigatepageNums;
    }
    @Data
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    public static class AddressItems
    {
        private int id;

        private int userId;

        private String receiverName;

        private String receiverPhone;

        private String receiverMobile;

        private String receiverProvince;

        private String receiverCity;

        private String receiverDistrict;

        private String receiverAddress;

        private String receiverZip;

        private int createTime;

        private int updateTime;
    }

}

